package gui;

public class CenterPanelReader {
	private static CenterPanel centerPanel = null;
	
	public static void registerCenterPanel(CenterPanel c){
		centerPanel = c;
	}
	
	public static int getWidth(){
		if(centerPanel != null)
			return centerPanel.getWidth();
		else
			return 0;
	}
	public static int getHeight(){
		if(centerPanel != null)
			return centerPanel.getWidth();
		else
			return 0;
	}
	

}
